package com.yijiu.network;

import org.json.JSONObject;

import android.util.Log;

public abstract class Response {

	protected String result;

	public JSONObject reposonJson;

	protected String tag = this.getClass().getSimpleName();

	public Response() {

	}

	public void setResult(String result) {
		this.result = result;
		Log.v(tag, result);
	}

	public void setOnlyReposon(JSONObject reposon) {
		reposonJson = reposon;
		jsonToObject();
	}

	protected abstract void jsonToObject();

	public JSONObject getJSONObject() {
		return reposonJson;
	}

}